====== Tips ======

====== Clearing the cache ======

If things look dodgy, try clearing the cache with this link: [[http://www.zoology.ubc.ca/~rikblok/wiki/recache.php]]


====== Deleting Plugins ======

Permissions are configured incorrectly so I can't use DokuWiki to disable/delete plugins.  Instead, do the following:

Delete your local copy of the plugin (in ''Public_HTML/wiki/lib/plugins'').

Then delete the plugin off the server:
<code>
ssh rikblok@zoology.ubc.ca
cd www/lib/plugins
rm -r plugin_to_be_deleted
</code>

<div round alert>
Be careful with the ''rm -r'' command, it could delete a lot more than you intended!
</div>

====== ACL Priorities ======

[[doku>ACL]] priorities are determined
  - First, by specificity of the namespace,
  - Then, by highest permission for the user/group.

This can lead to unexpected results.  For example, 
^ Page/Namespace    ^ User/Group       ^ Permissions  ^
| strata:*          | @strata          | Read         |
| strata:*          | @strata_council  | Upload       |
| strata:council:*  | @strata          | None         |
will block a user that is in both @strata and @strata_council groups from the strata:council namespace.  This occurs because the more specific strata:council:*/@strata/None rule supercedes the general strata:*/@strata_council/Upload rule.

To make it work you need to add a namespace-specific rule for @strata_council:
| strata:council:*  | @strata_council  | Upload       |

====== Permission denied on delete ======

I can't delete files created by the webserver because the permissions don't allow it.  Instead, I wrote a script that I can run through the webserver that does the delete for me.  It's in ''wiki/delfile.php''.  Change the ''$dir'' and ''$file'' variables, upload the file, and run it via
<code>
http://www.zoology.ubc.ca/~rikblok/wiki/delfile.php
</code>

====== Iframe sizing ======

The [[doku>plugin:iframe]] doesn't size precisely as it claims.  You need to specify the units.  For example,

<code>
{{url>https://www.google.com/calendar/embed 100%,600px}}
</code>

====== MathJax symbols ======

For special [[http://www.mathjax.org/docs/1.0/tex.html#supported-latex-commands | LaTeX symbols]] in MathJax you may need to require a library, for example:
<code>
\[
\require{AMSsymbols}
\]

\(x \gtrsim y\).
</code>
